import { defineConfig } from 'umi';
import pxtorem from 'postcss-pxtorem';
import routers from './routers'

export default defineConfig({
  // 移动端布局
  extraPostCSSPlugins: [
    pxtorem({
      rootValue: 37.5, // UI设计图宽为375px
      propList: [
        '*',
        '!border',
        '!border-top',
        '!border-right',
        '!border-bottom',
        '!border-left',
        '!border-width',
      ],
      selectorBlackList: ['html'],
    }),
  ],
  title: '智慧答题',
  nodeModulesTransform: {
    type: 'none',
  },
  routes: routers,
  fastRefresh: {},
  mfsu: {},
  antd: {
    mobile: false
  },
});
